<?php
$id = $_GET['id'];

$conn = mysql_connect("localhost","root", "");

if(!$conn) {
	echo "Error";
}

mysql_select_db("ranjith", $conn);

$query = "SELECT * FROM magazine WHERE id = '$id'";

$result = mysql_query($query);

$row = mysql_fetch_array($result);
?>
<html>
<head>
<title></title>
</head>
<body>
<h3><?php echo $row['title']; ?></h3>
<p><?php echo $row['content']; ?> </p>
<p><a href="aritcle_download.php?id=<?php echo $id; ?>">Download</a>
</body>
</html>